package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 股票列表增删改查对象 stock
 * 
 * @author majingqi
 * @date 2024-06-20
 */
public class Stock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 股票代码· */
    @Excel(name = "股票代码·")
    private String stockCode;

    /** 股票名称 */
    @Excel(name = "股票名称")
    private String stockName;

    /** 最新价格 */
    @Excel(name = "最新价格")
    private BigDecimal latestPrice;

    /** 涨跌额 */
    @Excel(name = "涨跌额")
    private String stockRange;

    /** 涨跌幅 */
    @Excel(name = "涨跌幅")
    private String priceLimit;

    /** 买入价 */
    @Excel(name = "买入价")
    private BigDecimal bidPrice;

    /** 卖出价 */
    @Excel(name = "卖出价")
    private String sellingRate;

    /** 昨日收盘 */
    @Excel(name = "昨日收盘")
    private String yesterdayClose;

    /** 今日开盘价 */
    @Excel(name = "今日开盘价")
    private BigDecimal todayOpeningPrice;

    /** 今日最高价 */
    @Excel(name = "今日最高价")
    private String todayHigh;

    /** 今日最低价 */
    @Excel(name = "今日最低价")
    private BigDecimal todayLowestPrice;

    /** 成交量 */
    @Excel(name = "成交量")
    private String tradingVolume;

    /** 成交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "成交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date closingTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStockCode(String stockCode) 
    {
        this.stockCode = stockCode;
    }

    public String getStockCode() 
    {
        return stockCode;
    }
    public void setStockName(String stockName) 
    {
        this.stockName = stockName;
    }

    public String getStockName() 
    {
        return stockName;
    }
    public void setLatestPrice(BigDecimal latestPrice) 
    {
        this.latestPrice = latestPrice;
    }

    public BigDecimal getLatestPrice() 
    {
        return latestPrice;
    }
    public void setStockRange(String stockRange) 
    {
        this.stockRange = stockRange;
    }

    public String getStockRange() 
    {
        return stockRange;
    }
    public void setPriceLimit(String priceLimit) 
    {
        this.priceLimit = priceLimit;
    }

    public String getPriceLimit() 
    {
        return priceLimit;
    }
    public void setBidPrice(BigDecimal bidPrice) 
    {
        this.bidPrice = bidPrice;
    }

    public BigDecimal getBidPrice() 
    {
        return bidPrice;
    }
    public void setSellingRate(String sellingRate) 
    {
        this.sellingRate = sellingRate;
    }

    public String getSellingRate() 
    {
        return sellingRate;
    }
    public void setYesterdayClose(String yesterdayClose) 
    {
        this.yesterdayClose = yesterdayClose;
    }

    public String getYesterdayClose() 
    {
        return yesterdayClose;
    }
    public void setTodayOpeningPrice(BigDecimal todayOpeningPrice) 
    {
        this.todayOpeningPrice = todayOpeningPrice;
    }

    public BigDecimal getTodayOpeningPrice() 
    {
        return todayOpeningPrice;
    }
    public void setTodayHigh(String todayHigh) 
    {
        this.todayHigh = todayHigh;
    }

    public String getTodayHigh() 
    {
        return todayHigh;
    }
    public void setTodayLowestPrice(BigDecimal todayLowestPrice) 
    {
        this.todayLowestPrice = todayLowestPrice;
    }

    public BigDecimal getTodayLowestPrice() 
    {
        return todayLowestPrice;
    }
    public void setTradingVolume(String tradingVolume) 
    {
        this.tradingVolume = tradingVolume;
    }

    public String getTradingVolume() 
    {
        return tradingVolume;
    }
    public void setClosingTime(Date closingTime) 
    {
        this.closingTime = closingTime;
    }

    public Date getClosingTime() 
    {
        return closingTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("stockCode", getStockCode())
            .append("stockName", getStockName())
            .append("latestPrice", getLatestPrice())
            .append("stockRange", getStockRange())
            .append("priceLimit", getPriceLimit())
            .append("bidPrice", getBidPrice())
            .append("sellingRate", getSellingRate())
            .append("yesterdayClose", getYesterdayClose())
            .append("todayOpeningPrice", getTodayOpeningPrice())
            .append("todayHigh", getTodayHigh())
            .append("todayLowestPrice", getTodayLowestPrice())
            .append("tradingVolume", getTradingVolume())
            .append("closingTime", getClosingTime())
            .toString();
    }
}
